package com.dcbeida.utils;


import android.Manifest;

import com.dcbeida.bean.Area;

import java.util.List;
import java.util.Map;

public class Constants {


    public static final int RESULT_CAPTER = 0x123;//二维码扫描结果
    public static final int RESULT_CAPTER_WITH_PAT = 0x124;//二维码扫描结果 患者
    public static final int RESULT_CRIDET_TYPE = 0x125;//身份证类型选择
    public static final int RESULT_TEL_TYPE = 0x126;//联系方式选择
    private static final String DEFAULT_DATA_BASEPATH = "/dcbeida"; // 缓存目录
    public static final String DEFAULT_DATA_FILE = DEFAULT_DATA_BASEPATH + "/FILE"; // 缓存地址
    public static final String DEFAULT_DATA_TEMP = DEFAULT_DATA_BASEPATH + "/IMGTEMP"; // 备份数据地址
    public static List<Area> provinces;// 所有的省份
    public static Map<String, List<Area>> areas;//所有区域
    public static Map<String, List<Area>> allCities;// 所有的城市


    public static final String RECEIVER_HOME_FRESH="android.beida.receiver.home.freash";
    public static final String RECEIVER_SALE_FRESH="android.beida.receiver.sale.freash";
    public static final String RECEIVER_STOCK_FRESH="android.beida.receiver.stock.freash";

    //阿里云上传文件 密钥
    public static final String accessKeyId = "LTAI5tKFKGnHSYm4cFbaRM3y";
    public static final String accessKeySecret = "0uDD637brpv8YpoCrrETYjcrX7PfiK";
    public static final String endpoint = "https://oss-cn-hangzhou.aliyuncs.com/";
    public static final String urlpic = "https://bettafile.qineasy.cn";
    public static final String imgBucket = "bettafile";
    public static final String HEADPIC = "fp";
    public static final String SHDPIC = "shd";

    public static final int UploadSuccess = 0x888;
    public static final int UploadFailed = 0x777;
    public static final int HOSPITAL_TYPE = 1000;


    public static final int SIGN_NEXT = 0x120;

    public static final int ONE = 1001;
    public static final int TWO = 1002;
    public static final int THREE = 1003;
    public static final int FOUR = 1004;
    public static final int REQUEST_CODE_CHOOSE = 1005;

    public static final int REQUEST_ADD_PATIENT = 0x91;
    public static final int REQUEST_CODE_CHOOSE_CF = 1006;

    public static final int REQUEST_ADD_PATIENT_SIGN = 0x92;

    public static final int MAX_IMAGE_SIZE = 4;//最多选择选择图片数量

    public static final String PERMISSION_RECORD_AUDIO = Manifest.permission.RECORD_AUDIO;
    public static final String PERMISSION_GET_ACCOUNTS = Manifest.permission.GET_ACCOUNTS;
    public static final String PERMISSION_READ_PHONE_STATE = Manifest.permission.READ_PHONE_STATE;
    public static final String PERMISSION_CALL_PHONE = Manifest.permission.CALL_PHONE;
    public static final String PERMISSION_CAMERA = Manifest.permission.CAMERA;
    public static final String PERMISSION_ACCESS_FINE_LOCATION = Manifest.permission.ACCESS_FINE_LOCATION;
    public static final String PERMISSION_ACCESS_COARSE_LOCATION = Manifest.permission.ACCESS_COARSE_LOCATION;
    public static final String PERMISSION_READ_EXTERNAL_STORAGE = Manifest.permission.READ_EXTERNAL_STORAGE;
    public static final String PERMISSION_WRITE_EXTERNAL_STORAGE = Manifest.permission.WRITE_EXTERNAL_STORAGE;



    public static final int RESULT_PATIENT_CODE = 10001;
    public static final int REQUEST_PATIENT_CODE = 10002;

}
